-- GENERATED SPELL FOR [Phantasmal Air] --


function spell0_27650(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(20545,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27650', 0, 1)
end

function spell1_27650(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(25020,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27650', 0, 1)
end

function Sorts_27650(pUnit, Event)
local choix_sorts_27650 = math.random(0, 1)
if choix_sorts_27650 == 0 then
pUnit:RegisterEvent('spell0_27650', 1, 1)
end
if choix_sorts_27650 == 1 then
pUnit:RegisterEvent('spell1_27650', 1, 1)
end
end

function mob27650_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27650', math.random(1500, 3000), 1)
end

function mob27650_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27650_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27650_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27650, 1, 'mob27650_Action')
RegisterUnitEvent(27650, 2, 'mob27650_Leave')
RegisterUnitEvent(27650, 3, 'mob27650_Kill')
RegisterUnitEvent(27650, 4, 'mob27650_Die')
